<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
    <meta charset="utf-8">
    <title>新增流程节点</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" th:href="@{/js/layui/css/layui.css}"  media="all" />
    <link rel="stylesheet" th:href="@{/css/public.css}"  media="all" />
</head>
<body>
<div style="width:100%;-webkit-backface-visibility: hidden;" >
    <div class="houselabel">
        <form class="layui-form layui-row" style="padding: 5px 5px;" >
            <div class="layui-row layui-col-space10" style="text-align: center">
                <div class="layui-form-item magt3">
                    <label class="layui-form-label">流程名称:</label>
                    <div class="layui-input-block">
                        <!--<input type="text" class="layui-input" name="packageName"  placeholder="请输入话术名称">-->
                        <input type="text" name="flowName" lay-verify="required" placeholder="请输入流程名称" autocomplete="off" class="layui-input"
                               required th:value="${speakingFlow?.flowName}">
                    </div>
                </div>
                <th:block th:if="${flowType == 'main'}">
                    <div class="layui-form-item magt3">
                        <label class="layui-form-label">顺序:</label>
                        <div class="layui-input-block">
                            <!--<input type="text" class="layui-input" name="packageName"  placeholder="请输入话术名称">-->
                            <input type="text" name="sortNum" lay-verify="required" placeholder="请输入流程执行顺序" autocomplete="off" class="layui-input"
                                   required th:value="${speakingFlow?.sortNum}" lay-verify-zdy="number">
                        </div>
                    </div>
                </th:block>

                <div class="layui-form-item"  style="display: none" >
                    <input type="text" name="id" th:value="${speakingFlow?.id}" value="0" />
                </div>

                <div class="layui-form-item"  style="display: none" >
                    <input type="text" name="packageId" th:value="${packageId}" value="0" />
                </div>

                <div class="layui-form-item"  style="display: none" >
                    <input type="text" name="flowType" th:value="${flowType}" value="0" />
                </div>
            </div>
            <div style="position:absolute;left: 0px;bottom: 0px; width: 100%;height: 50px;background-color: #f2f2f2;padding: 0px;display: none;">
                <button type="button" class="layui-btn" lay-submit lay-filter="add" style="width: 100px;float: right;margin-top: 7px;margin: 5px 5px;">保存</button>
                <button type="button" class="layui-btn"  id="cancel"  style="width: 100px;margin-top: 7px;background-color: #b2b2b2;float: right;margin: 5px 5px;" >取消</button>
            </div>
        </form>
    </div>
</div>
<script th:inline="javascript">
    const baseUrl = [[${#servletContext.contextPath}]];
</script>
<script type="text/javascript"   th:src="@{/js/layui/layui.js}"></script>
<script type="text/javascript"   th:src="@{/js/page/flow/config/addSpeakingFlow.js}"></script>
<script type="text/javascript"   th:src="@{/js/jquery-1.7.2.min.js}"></script>
<script type="text/javascript"   th:src="@{/js/page/utils.js}"></script>
</body>
</html>